#ifndef PICSTATEBTN_H
#define PICSTATEBTN_H

#include <QPushButton>
#include <QString>

class PicStateBtn : public QPushButton
{
    Q_OBJECT
public:
    PicStateBtn(QWidget *parent = nullptr);

    void SetIcons(const QString &normal, const QString &hover, const QString &pressed,
                               const QString &normal_2, const QString &hover_2, const QString &pressed_2);

    void setNormalIcon();
    void setHoverIcon();
    void setPressIcon();
    void setNormal2Icon();
    void setHover2Icon();
    void setPress2Icon();

protected:
    bool event(QEvent *event);

public slots:
    void SlotStart();
    void SlotStop();

private:
    QString _normal;
    QString _hover;
    QString _pressed;
    QString _normal_2;
    QString _hover_2;
    QString _pressed_2;

    int _cur_state;

signals:
};

#endif // PICSTATEBTN_H
